export default {
    formData:{
            couponName:'',//优惠券名称 required
            couponTpl:'',//使用模板 required
            totalNum:"",//发放总量 required
            couponShape:"",//优惠形式 required
            amount:"",//优惠形式-指定现金-金额 
            discount:"",//优惠形式-指定现金 
            useThreshold:"",//使用门槛 required
            useAmount:"",//使用门槛-满多少 required
            receiveType:"",//领取方式: required
            userLevel:"",//领取规则-用户-用户等级 required
            limitCount:"",//每人限领多少张 required
            couponExpiredType:"",//有效期-类型 required
            timeRangeStart:"",//有效期-类型-固定日期
            timeRangeStarts:[],
            timeRangeEnd:"",//有效期-类型-固定日期
            limitDays:"",//有效期-类型-天数设置
            productType:"",//可使用商品类型
            unProductType:"",//不可使用商品类型
            receiveChannelDist:"",//领取渠道- required
            childChannelCode:"",//可以领取的子渠道 
            channelIdCode:"",//可以领取的主渠道
            useChannelDist:"",//使用的渠道定义 required
            useChildChannelCode:"",//可用子渠道
            useChannelCode:"",//可用主渠道
            useDesc:"",//使用说明 required
            remark:"",//备注
            categoryIds:[],//分类ID
            brandIds:[],//品牌ID
            productIds:[],//商品ID
            isUse:"Y",
            useChannel:[],
            getChannel:[]
    },
    rules:{
        couponName:[ {required: true, message: '优惠券名称不能为空', trigger: 'change' }],
        couponTpl:[ {required: true, message: '使用模板不能为空', trigger: 'change' }],
        totalNum:[ {required: true, message: '发放总量不能为空', trigger: 'change' }],
        couponShape:[ {required: true, message: '优惠形式不能为空', trigger: 'change' }],
        useThreshold:[ {required: true, message: '使用门槛不能为空', trigger: 'change' }],
        useAmount:[ {required: true, message: '使用门槛不能为空', trigger: 'change' }],
        receiveType:[ {required: true, message: '领取方式不能为空', trigger: 'change' }],
        userLevel:[ {required: true, message: '用户等级不能为空', trigger: 'change' }],
        limitCount:[ {required: true, message: '限领多少张不能为空', trigger: 'change' }],
        couponExpiredType:[ {required: true, message: '有效期-类型不能为空', trigger: 'change' }],
        receiveChannelDist:[ {required: true, message: '领取渠道不能为空', trigger: 'change' }],
        useChannelDist:[ {required: true, message: '使用的渠道不能为空', trigger: 'change' }],
        useDesc:[ {required: true, message: '使用说明不能为空', trigger: 'change' }],
        amount:[ {required: true, message: '金额不能为空', trigger: 'change' }],
        discount:[ {required: true, message: '折扣不能为空', trigger: 'change' }],
        useAmount:[ {required: true, message: '使用门槛不能为空', trigger: 'change' }],
        timeRangeStarts:[ {required: true, message: '生效/过期时间不能为空', trigger: 'change' }],
        limitDays:[ {required: true, message: '有效期时间不能为空', trigger: 'change' }],
        useChannel:[ {required: true, message: '主渠道不能为空', trigger: 'change' }],
        useChildChannelCode:[ {required: true, message: '子渠道不能为空', trigger: 'change' }],
        getChannel:[ {required: true, message: '主渠道不能为空', trigger: 'change' }],
        childChannelCode:[ {required: true, message: '子渠道不能为空', trigger: 'change' }],
    },
    pageData:{
        dialog:false,
        classfiyList:[], //寄卖分类列表数据
        qdclassfiy:[],//已选择寄卖分类
        brandList:[],//寄卖品牌列表数据
        qdBrandList:[],//已选择寄卖品牌list


    },
    btnTitle:"提交",
    FisrtTitle:'创建优惠券',
    salerules:{},
    diarules:{ // 寄卖分类rules 
        key:'categoryId',
        label:'categoryName'
    },
    brandrules:{ //寄卖品牌rules
        key:'brandId',
        label:'brandCname'  
    },
    goodsrules:{//寄卖商品rules
        key:'productId',
        label:'unitType'  
    },
    options:[],
    defaultData:{
        value:"channelId",
        label:"channelName",
        children:"childChannelList"
    },
    disabled:false,
    current:1

}